<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
 <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<script type="text/javascript">
	$(function() {
		window.setTimeout(function() {
			parent.$.messager.progress('close');
		}, 1);

		$('#form').form({
			url : '${pageContext.request.contextPath}/qdglController/edit.shtml',
			onSubmit : function() {
				parent.$.messager.progress({
					title : '提示',
					text : '数据处理中，请稍后....'
				});
				var isValid = $(this).form('validate');
				if (!isValid) {
					parent.$.messager.progress('close');
				}
				return isValid;
			},
			success : function(result) {
				parent.$.messager.progress('close');
				result = $.parseJSON(result);
				if (result.success) {
					parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
					parent.$.modalDialog.handler.dialog('close');
				} else {
					parent.$.messager.alert('错误', result.msg, 'error');
				}
			}
		});
	});
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false" title="" style="overflow: hidden;">
		<form id="form" method="post" enctype="multipart/form-data">
			<table class="table table-hover table-condensed">
				<tr>
					<th>用户名</th>
					<td >
						<input name="YHM" style="width:200px;" type="text" class="span2" value="${qDGL.LOGUSERNAME}">
					</td>
					<th>密码</th>
					<td>
						<input name="MIMA" style="width:200px;" type="text" class="span2" value="${qDGL.PASSWORD}">
					</td>
				</tr>
				<tr>
					<th>类别</th>
					<td>
						<input name="LEIBIE" style="width:200px;" type="text" class="span2" value="${qDGL.LEIBIE}">
					</td>
					<th>权限管理</th>
					<td>
						<input name="QXGL" readonly="readonly" style="width:200px;" type="text" class="span2" value="${qDGL.QXGL}">
						<input name="ID" style="width:200px;" type="hidden" class="span2" value="${qDGL.ID}">
					</td>
				</tr>
				<tr>
					<th>渠道名称</th>
					<td>
						<input name="QDMC" style="width:200px;" type="text" class="span2" value="${qDGL.QDMC}">
					</td>
					<th>KEY</th>
					<td>
						<input name="KEY" readonly="readonly" style="width:200px;" type="text" class="span2" value="${qDGL.OPENKEY}">
					</td>
					
				</tr> 
				<tr>
					<th>IP</th>
					<td>
						<input name="IP" style="width:200px;" type="text" class="span2" value="${qDGL.IP}">
					</td>
					<th>状态</th>
					<!-- data-options="editable:false" -->
					<td>
						<select readonly="readonly" class="easyui-combobox" name="ZHUANGTAI" style="width:200px;">
							
						    <c:if test="${qDGL.ZHUANGTAI==0 }">
						    <option value="0">未开通</option>
						    <option value="1">已开通</option>
						    </c:if> 
							<c:if test="${qDGL.ZHUANGTAI==1 }">
						    <option value="1">已开通</option>
						    <option value="0">未开通</option>
						    </c:if>
						</select>
					</td>
				</tr> 
			</table>
		</form>
	</div>
</div>